import { useState } from "react";

import { Button } from "antd";

import "antd/dist/antd.css";

function App() {
    const [count, setCount] = useState(0);
    return (
        <div>
            <h1>hello, world</h1>
            <div>{count}</div>
            <Button type="primary" size="large" onClick={() => setCount((oldV) => oldV + 1)}>
                增加
            </Button>
        </div>
    );
}

export default App;
